package com.springcloud.sleuth.controller;

import com.springcloud.sleuth.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Desc:
 * @Date: 2020-06-27
 * @Version:v1.0
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    public String sayHello(@RequestParam("name") String name) {
        return helloService.sayHello(name);
    }
}
